package com.shuke.sk_worm.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuke.sk_worm.Mapper.SkAccountInfoMapper;
import com.shuke.sk_worm.Mapper.SkAccountsMapper;
import com.shuke.sk_worm.Mapper.SkShopInfoMapper;
import com.shuke.sk_worm.domain.SkAccounts;
import com.shuke.sk_worm.service.SkAccountsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkAccountsServiceImpl extends ServiceImpl<SkAccountsMapper, SkAccounts>
    implements SkAccountsService {


    @Autowired
    private SkAccountsMapper accountsMapper;

    public void updateAccount(Long id, Integer status){
        accountsMapper.updateAccount(id, status);
    }

    public List<SkAccounts> findFailAccounts(Integer platform, Long date){
        return accountsMapper.findFailAccounts(platform, date);
    }
}
